<?php
namespace app\admin\validate;
use think\Validate;
class Special extends Validate
{

    protected $rule=[
        'special_name'=>'unique:special|require|max:25',
    ];

    protected $message=[
        'special_name.require'=>'分类名称不得为空！',
        'special_name.unique'=>'分类名称不得重复！',
    ];

    protected $scene=[
        'add'=>['special_name'],
        'edit'=>['special_name'],
    ];

}
